﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MishraReader.Entities;


namespace MishraReader.ViewModels.Reader
{
    public class ShareServiceViewModel : ViewModelBase
    {
        private bool _isActivated;

        public ShareServiceViewModel(IShareServicePackage servicePackage)
        {
            ServicePackage = servicePackage;
            ServiceLogo = servicePackage.ServiceLogoImageUri;
        }

        public bool IsSupported
        {
            get { return ServicePackage.Service.IsSupported; }
        }

        /// <summary>
        ///   Gets or sets a value indicating whether this instance is activated.
        /// </summary>
        /// <value> <c>true</c> if this instance is activated; otherwise, <c>false</c> . </value>
        public bool IsActivated
        {
            get { return _isActivated; }
            set
            {
                Set(ref _isActivated, value);
            }
        }

        /// <summary>
        ///   Gets the service.
        /// </summary>
        public IShareServicePackage ServicePackage { get; private set; }

        public Uri ServiceLogo { get; private set; }
    }
}